<!-- HTML header for doxygen 1.8.20-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=9"/>
	<meta name="generator" content="Doxygen 1.9.4"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<title>Raspberry Pi Pico SDK: include/pico/i2c_slave.h File Reference</title>
	<!-- <link href="tabs.css" rel="stylesheet" type="text/css"/> -->
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="dynsections.js"></script>
	<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
	<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
	<link href="doxygen.css" rel="stylesheet" type="text/css" />
	<link href="normalise.css" rel="stylesheet" type="text/css"/>
<link href="main.css" rel="stylesheet" type="text/css"/>
<link href="styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div class="navigation-mobile">
		<div class="logo--mobile">
			<a href="/"><img src="logo-mobile.svg" alt="Raspberry Pi"></a>
		</div>
		<div class="navigation-toggle">
			<span class="line-1"></span>
			<span class="line-2">
				<p>Menu Toggle</p>
			</span>
			<span class="line-3"></span>
		</div>
	</div>
	<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
		<div class="logo">
			<a href="index.html"> <img src="logo.svg" alt="Raspberry Pi"></a>
			<span style="display: inline-block; margin-top: 10px;">
				v2.1.0
			</span>
		</div>
		<div class="navigation-footer">
			<img src="logo-mobile.svg" alt="Raspberry Pi">
			<a href="https://www.raspberrypi.com/" target="_blank">By Raspberry Pi Ltd</a>
		</div>
<!-- 		<div class="search">
			<form>
				<input type="search" name="search" id="search" placeholder="Search">
				<input type="submit" value="Search">
			</form>
		</div> -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('i2c__slave_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">i2c_slave.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="rp2__common_2hardware__i2c_2include_2hardware_2i2c_8h_source.html">hardware/i2c.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for i2c_slave.h:</div>
<div class="dyncontent">
<div class="center"><img src="i2c__slave_8h__incl.png" border="0" usemap="#ainclude_2pico_2i2c__slave_8h" alt=""/></div>
<map name="ainclude_2pico_2i2c__slave_8h" id="ainclude_2pico_2i2c__slave_8h">
<area shape="rect" title=" " alt="" coords="507,5,684,32"/>
<area shape="rect" href="rp2__common_2hardware__i2c_2include_2hardware_2i2c_8h.html" title=" " alt="" coords="536,80,655,107"/>
<area shape="rect" href="pico_8h.html" title=" " alt="" coords="411,304,473,331"/>
<area shape="rect" href="common_2pico__time_2include_2pico_2time_8h.html" title=" " alt="" coords="471,155,565,181"/>
<area shape="rect" title=" " alt="" coords="589,155,756,181"/>
<area shape="rect" title=" " alt="" coords="781,155,941,181"/>
<area shape="rect" href="common_2pico__base__headers_2include_2pico_2types_8h_source.html" title=" " alt="" coords="158,528,259,555"/>
<area shape="rect" title=" " alt="" coords="252,379,365,405"/>
<area shape="rect" href="common_2pico__base__headers_2include_2pico_2config_8h_source.html" title=" " alt="" coords="390,379,494,405"/>
<area shape="rect" href="platform_8h.html" title=" " alt="" coords="596,379,717,405"/>
<area shape="rect" href="error_8h_source.html" title=" " alt="" coords="741,379,836,405"/>
<area shape="rect" href="assert_8h_source.html" title=" " alt="" coords="5,603,111,629"/>
<area shape="rect" title=" " alt="" coords="74,677,157,704"/>
<area shape="rect" title=" " alt="" coords="211,603,281,629"/>
<area shape="rect" title=" " alt="" coords="306,603,381,629"/>
<area shape="rect" title=" " alt="" coords="173,453,337,480"/>
<area shape="rect" href="compiler_8h_source.html" title=" " alt="" coords="362,453,543,480"/>
<area shape="rect" href="sections_8h_source.html" title=" " alt="" coords="567,453,746,480"/>
<area shape="rect" href="panic_8h_source.html" title=" " alt="" coords="770,453,930,480"/>
<area shape="rect" title=" " alt="" coords="954,453,1165,480"/>
<area shape="rect" title=" " alt="" coords="1189,453,1340,480"/>
<area shape="rect" title=" " alt="" coords="357,528,548,555"/>
<area shape="rect" href="rp2__common_2hardware__timer_2include_2hardware_2timer_8h.html" title=" " alt="" coords="521,229,654,256"/>
<area shape="rect" title=" " alt="" coords="497,304,678,331"/>
<area shape="rect" title=" " alt="" coords="703,304,872,331"/>
</map>
</div>
</div>
<p><a href="i2c__slave_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga8d4821831a9a533b701eca1016021c33"><td class="memItemLeft" align="right" valign="top">
typedef enum <a class="el" href="group__pico__i2c__slave.html#gad8b613f0d4e9d1b9511ca0b6d6ab7e8c">i2c_slave_event_t</a>&#160;</td><td class="memItemRight" valign="bottom"><b>i2c_slave_event_t</b></td></tr>
<tr class="memdesc:ga8d4821831a9a533b701eca1016021c33"><td class="mdescLeft">&#160;</td><td class="mdescRight">I2C slave event types. <br /></td></tr>
<tr class="separator:ga8d4821831a9a533b701eca1016021c33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf1bb7bb1e79c309b290bf0e8ccd57dff"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__i2c__slave.html#gaf1bb7bb1e79c309b290bf0e8ccd57dff">i2c_slave_handler_t</a>) (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, <a class="el" href="group__pico__i2c__slave.html#gad8b613f0d4e9d1b9511ca0b6d6ab7e8c">i2c_slave_event_t</a> event)</td></tr>
<tr class="memdesc:gaf1bb7bb1e79c309b290bf0e8ccd57dff"><td class="mdescLeft">&#160;</td><td class="mdescRight">I2C slave event handler.  <a href="group__pico__i2c__slave.html#gaf1bb7bb1e79c309b290bf0e8ccd57dff">More...</a><br /></td></tr>
<tr class="separator:gaf1bb7bb1e79c309b290bf0e8ccd57dff"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gad8b613f0d4e9d1b9511ca0b6d6ab7e8c"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__i2c__slave.html#gad8b613f0d4e9d1b9511ca0b6d6ab7e8c">i2c_slave_event_t</a> { <a class="el" href="group__pico__i2c__slave.html#ggad8b613f0d4e9d1b9511ca0b6d6ab7e8ca7bc1a9bb9db707479c140a49c4d62a51">I2C_SLAVE_RECEIVE</a>
, <a class="el" href="group__pico__i2c__slave.html#ggad8b613f0d4e9d1b9511ca0b6d6ab7e8ca495a6f0ce75738519ac201349ac38c22">I2C_SLAVE_REQUEST</a>
, <a class="el" href="group__pico__i2c__slave.html#ggad8b613f0d4e9d1b9511ca0b6d6ab7e8ca857dc8c139941a8f8bb6888a84e4b83f">I2C_SLAVE_FINISH</a>
 }</td></tr>
<tr class="memdesc:gad8b613f0d4e9d1b9511ca0b6d6ab7e8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">I2C slave event types.  <a href="group__pico__i2c__slave.html#gad8b613f0d4e9d1b9511ca0b6d6ab7e8c">More...</a><br /></td></tr>
<tr class="separator:gad8b613f0d4e9d1b9511ca0b6d6ab7e8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga2ecc43ff4a3c673a704d0c7bd7d91db4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__i2c__slave.html#ga2ecc43ff4a3c673a704d0c7bd7d91db4">i2c_slave_init</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c, uint8_t address, <a class="el" href="group__pico__i2c__slave.html#gaf1bb7bb1e79c309b290bf0e8ccd57dff">i2c_slave_handler_t</a> handler)</td></tr>
<tr class="memdesc:ga2ecc43ff4a3c673a704d0c7bd7d91db4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure an I2C instance for slave mode.  <a href="group__pico__i2c__slave.html#ga2ecc43ff4a3c673a704d0c7bd7d91db4">More...</a><br /></td></tr>
<tr class="separator:ga2ecc43ff4a3c673a704d0c7bd7d91db4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaebbea8f5a707f23750ba3e0c8b5eb6ee"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__pico__i2c__slave.html#gaebbea8f5a707f23750ba3e0c8b5eb6ee">i2c_slave_deinit</a> (<a class="el" href="structi2c__inst.html">i2c_inst_t</a> *i2c)</td></tr>
<tr class="memdesc:gaebbea8f5a707f23750ba3e0c8b5eb6ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Restore an I2C instance to master mode.  <a href="group__pico__i2c__slave.html#gaebbea8f5a707f23750ba3e0c8b5eb6ee">More...</a><br /></td></tr>
<tr class="separator:gaebbea8f5a707f23750ba3e0c8b5eb6ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->

	<script src="main.js"></script>
</body>
</html>